package com.wze.wze.Service;

import com.wze.wze.Entity.LikeMusic;
import com.wze.wze.Impl.LikeMusicImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LikeMusicService implements LikeMusicImpl {
    @Resource
    LikeMusicImpl likeMusic;

    @Override
    public LikeMusic getMusicByuid(int uid,int mid) {
        return likeMusic.getMusicByuid(uid,mid);
    }

    @Override
    public List<LikeMusic> getLikeMusicList(int Start, int Page, int uid, int mid) {
        return likeMusic.getLikeMusicList(Start,Page,uid,mid);
    }

    @Override
    public int addLikeMusic(String music, int uid,int mid) {
        return likeMusic.addLikeMusic(music, uid,mid);
    }

    @Override
    public int upLikeMusic(LikeMusic likeMusic1) {
        return likeMusic.upLikeMusic(likeMusic1);
    }

    @Override
    public int delLikeMusicByuId(int uid ,int mid) {
        return likeMusic.delLikeMusicByuId(uid,mid);
    }
}
